<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        body {
            width: 50%;
            height: 100vh;
            margin: 0 auto;
            background-color: #abefe9;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }

        hr {
            width: 100%;
            background-color: red;
            height: 5px;
            border: 0;
            margin: 0;
        }

        div {
            border: black 1px solid;
        }

        .s1 {
            line-height: 32px;
            width: 200px;
            height: 200px;
            background-color: #bfc;
            padding: 10px;
            border: black 1px solid;
            margin: 20px;
        }
    </style>
</head>

<body>
    <div>
        <hr>
        <span class="s1">内联元素不能设置宽和高</span>
        <br>
        <span class="s1">设置的垂直方向内边距不会影响页面布局</span>
        <br>
        <span class="s1">设置的垂直方向边框不会影响页面布局</span>
        <br>
        <span class="s1">不支持垂直外边距</span>
    </div>
</body>

</html>